from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

from handlers import *

application = webapp.WSGIApplication([
    ('/', MainHandler),
    ('/cron/fetchNews', FetchNewsHandler),
    ('/cron/cleanClients', CleanClientsHandler),
    ('/getToken', TokenHandler),
    ('/startMsgs', MessageHandler),
], debug=True)

def main():
    util.run_wsgi_app(application)

if __name__ == '__main__':
    main()
